When a single table is linked to two or more tables, Crystal Reports needs to know in what order it should look up and link data from the primary table to data in the second, third, etc., lookup table.
Crystal Reports offers three options for looking up records in two or more lookup tables from a single primary table:
Note: These options are not available if you are using data from an ODBC data source.
These options are available only when you have a single table (a primary table) that is linked to two or more lookup tables. The primary table must be the "link from" table in each of the links. For instance, if you link from the Customer table to the Orders table and from the Customer table to the Credit table, these lookup options are available. However, if you link from the Customer table to the Orders table and from the Credit table to the Customer table, these options are not available.
In this example, for each method demonstrated, three fields from three different linked tables will be shown. In each case, the Customer table is linked to the Credit table and the Orders table. The fields displayed are the Customer Name field from the Customer table, the Amount field from the Credit table, and the Order Amount field from the Orders table. These are not necessarily actual link fields for the tables, but the data in these fields illustrates how data is retrieved using each of the three lookup methods.
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |